package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.AttendPeriodStatExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_ATTEND_PUNCH_TIME_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_ATTEND_RECORD_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_MONTHLY;
import static org.jsola.hr.example.AttendPeriodStatExample.E_PEOPLE_MONTHLY_STAT_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.E_PERIOD;
import static org.jsola.hr.example.AttendPeriodStatExample.E_YEARLY;
import static org.jsola.hr.example.AttendPeriodStatExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_ATTEND_PUNCH_TIME_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_ATTEND_RECORD_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_EMP_INFO_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_MONTHLY_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_PEOPLE_MONTHLY_STAT_ID_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_PERIOD_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.M_YEARLY_MAX;
import static org.jsola.hr.example.AttendPeriodStatExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_ATTEND_PUNCH_TIME_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_ATTEND_RECORD_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_EMP_INFO_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_MONTHLY;
import static org.jsola.hr.example.AttendPeriodStatExample.N_PEOPLE_MONTHLY_STAT_ID;
import static org.jsola.hr.example.AttendPeriodStatExample.N_PERIOD;
import static org.jsola.hr.example.AttendPeriodStatExample.N_YEARLY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤打卡时间段统计】的参数")
@Data
public class AttendPeriodStatAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_PEOPLE_MONTHLY_STAT_ID, example = E_PEOPLE_MONTHLY_STAT_ID)
    @Length(max = 32, message = M_PEOPLE_MONTHLY_STAT_ID_MAX)
    private String peopleMonthlyStatId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    @Length(max = 32, message = M_EMP_INFO_ID_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_ATTEND_PUNCH_TIME_ID, example = E_ATTEND_PUNCH_TIME_ID)
    @Length(max = 32, message = M_ATTEND_PUNCH_TIME_ID_MAX)
    private String attendPunchTimeId;

    @ApiModelProperty(notes = N_PERIOD, example = E_PERIOD)
    @Length(max = 255, message = M_PERIOD_MAX)
    private String period;

    @ApiModelProperty(notes = N_YEARLY, example = E_YEARLY)
    @Length(max = 10, message = M_YEARLY_MAX)
    private String yearly;

    @ApiModelProperty(notes = N_MONTHLY, example = E_MONTHLY)
    @Length(max = 10, message = M_MONTHLY_MAX)
    private String monthly;

    @ApiModelProperty(notes = N_ATTEND_RECORD_ID, example = E_ATTEND_RECORD_ID)
    @Length(max = 32, message = M_ATTEND_RECORD_ID_MAX)
    private String attendRecordId;


}

